using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EventHandler : MonoBehaviour
{
    public static event Action StartGame;

    public static void CallStartGame()
    {
        StartGame?.Invoke();
    }


    public static event Action UpdateAir;

    public static void CallUpdateAir()
    {
        UpdateAir?.Invoke();
    }


    public static event Action EndDive;

    public static void CallEndDive()
    {
        EndDive?.Invoke();
    }


    public static event Action StartDive;

    public static void CallStartDive()
    {
        StartDive?.Invoke();
    }


    public static event Action<String> ReducedPressure;

    public static void CallReducedPressure(String text)
    {
        ReducedPressure?.Invoke(text);
    }


    public static event Action<GameObject> CarryPeople;

    public static void CallCarryPeople(GameObject people)
    {
        CarryPeople?.Invoke(people);
    }
}
